<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>e-MarioSakoban:  Fichier source de /home/ychoucha/cours_IUT/Programmation/C/sakoban_project/src/gestionImages.c</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&nbsp;de&nbsp;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
<h1>/home/ychoucha/cours_IUT/Programmation/C/sakoban_project/src/gestionImages.c</h1><a href="gestionImages_8c.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">gestionImages.c</span>
<a name="l00003"></a>00003 <span class="comment">-----</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">créer par Issa</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment">Rôle : gestion des images en EFL</span>
<a name="l00008"></a>00008 <span class="comment">*/</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#include "<a class="code" href="allInclude_8h.html">allInclude.h</a>"</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 
<a name="l00014"></a><a class="code" href="gestionImages_8c.html#3cf3ff9855e9ba44368b3f75796e811f">00014</a> Evas_Object  *<a class="code" href="gestionImages_8h.html#3cf3ff9855e9ba44368b3f75796e811f">murMove</a>( Evas_Object *o,Evas *evas,<span class="keywordtype">int</span> move1,<span class="keywordtype">int</span> move2)
<a name="l00015"></a>00015 {
<a name="l00016"></a>00016     <span class="keywordtype">int</span> iw, ih;
<a name="l00017"></a>00017     o = evas_object_image_add (evas);
<a name="l00018"></a>00018     evas_object_image_file_set (o, <span class="stringliteral">"../imgs/mur.jpg"</span>, NULL);
<a name="l00019"></a>00019     evas_object_image_size_get(o, &amp;iw, &amp;ih);
<a name="l00020"></a>00020     evas_object_image_size_set(o, iw, ih);
<a name="l00021"></a>00021     evas_object_image_fill_set(o, 0, 0, iw, ih);
<a name="l00022"></a>00022     evas_object_resize (o, iw, ih);
<a name="l00023"></a>00023     evas_object_move (o, move1, move2);
<a name="l00024"></a>00024     <span class="keywordflow">return</span> o;
<a name="l00025"></a>00025 }
<a name="l00026"></a>00026 
<a name="l00027"></a><a class="code" href="gestionImages_8c.html#387478080f91889103854896bb027d2d">00027</a> Evas_Object  *<a class="code" href="gestionImages_8h.html#387478080f91889103854896bb027d2d">caisseMove</a>( Evas_Object *o,Evas *evas,<span class="keywordtype">int</span> move1,<span class="keywordtype">int</span> move2)
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029     <span class="keywordtype">int</span> iw, ih;
<a name="l00030"></a>00030     o = evas_object_image_add (evas);
<a name="l00031"></a>00031     evas_object_image_file_set (o, <span class="stringliteral">"../imgs/caisse.jpg"</span>, NULL);
<a name="l00032"></a>00032     evas_object_image_size_get(o, &amp;iw, &amp;ih);
<a name="l00033"></a>00033     evas_object_image_size_set(o, iw, ih);
<a name="l00034"></a>00034     evas_object_image_fill_set(o, 0, 0, iw, ih);
<a name="l00035"></a>00035     evas_object_resize (o, iw, ih);
<a name="l00036"></a>00036     evas_object_move (o, move1, move2);
<a name="l00037"></a>00037     <span class="keywordflow">return</span> o;
<a name="l00038"></a>00038 }
<a name="l00039"></a>00039 
<a name="l00040"></a><a class="code" href="gestionImages_8c.html#3861975760477634a3d312ccf03e2412">00040</a> Evas_Object  *<a class="code" href="gestionImages_8h.html#3861975760477634a3d312ccf03e2412">MarioBas</a>( Evas_Object *o,Evas *evas,<span class="keywordtype">int</span> move1,<span class="keywordtype">int</span> move2)
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042     <span class="keywordtype">int</span> iw, ih;
<a name="l00043"></a>00043     o = evas_object_image_add (evas);
<a name="l00044"></a>00044     evas_object_image_file_set (o, <span class="stringliteral">"../imgs/mario_bas.gif"</span>, NULL);
<a name="l00045"></a>00045     evas_object_image_size_get(o, &amp;iw, &amp;ih);
<a name="l00046"></a>00046     evas_object_image_size_set(o, iw, ih);
<a name="l00047"></a>00047     evas_object_image_fill_set(o, 0, 0, iw, ih);
<a name="l00048"></a>00048     evas_object_resize (o, iw, ih);
<a name="l00049"></a>00049     evas_object_move (o, move1, move2);
<a name="l00050"></a>00050     <span class="keywordflow">return</span> o;
<a name="l00051"></a>00051 }
<a name="l00052"></a><a class="code" href="gestionImages_8c.html#94962721f2029e32141eeb6b1e59e4f5">00052</a> Evas_Object  *<a class="code" href="gestionImages_8h.html#94962721f2029e32141eeb6b1e59e4f5">objectifMove</a>( Evas_Object *o,Evas *evas,<span class="keywordtype">int</span> move1,<span class="keywordtype">int</span> move2)
<a name="l00053"></a>00053 {
<a name="l00054"></a>00054     <span class="keywordtype">int</span> iw, ih;
<a name="l00055"></a>00055     o = evas_object_image_add (evas);
<a name="l00056"></a>00056     evas_object_image_file_set (o, <span class="stringliteral">"../imgs/objectif.png"</span>, NULL);
<a name="l00057"></a>00057     evas_object_image_size_get(o, &amp;iw, &amp;ih);
<a name="l00058"></a>00058     evas_object_image_size_set(o, iw, ih);
<a name="l00059"></a>00059     evas_object_image_fill_set(o, 0, 0, iw, ih);
<a name="l00060"></a>00060     evas_object_resize (o, iw, ih);
<a name="l00061"></a>00061     evas_object_move (o, move1, move2);
<a name="l00062"></a>00062     <span class="keywordflow">return</span> o;
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064 
<a name="l00065"></a><a class="code" href="gestionImages_8c.html#db0c50da7f1f0a78da997497338e80d6">00065</a> Evas_Object  *<a class="code" href="gestionImages_8h.html#db0c50da7f1f0a78da997497338e80d6">videMove</a>( Evas_Object *o,Evas *evas,<span class="keywordtype">int</span> move1,<span class="keywordtype">int</span> move2)
<a name="l00066"></a>00066 {
<a name="l00067"></a>00067     <span class="keywordtype">int</span> iw, ih;
<a name="l00068"></a>00068     o = evas_object_image_add (evas);
<a name="l00069"></a>00069     evas_object_image_file_set (o, <span class="stringliteral">"../imgs/vide.jpg"</span>, NULL);
<a name="l00070"></a>00070     evas_object_image_size_get(o, &amp;iw, &amp;ih);
<a name="l00071"></a>00071     evas_object_image_size_set(o, iw, ih);
<a name="l00072"></a>00072     evas_object_image_fill_set(o, 0, 0, iw, ih);
<a name="l00073"></a>00073     evas_object_resize (o, iw, ih);
<a name="l00074"></a>00074     evas_object_move (o, move1, move2);
<a name="l00075"></a>00075     <span class="keywordflow">return</span> o;
<a name="l00076"></a>00076 }
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="gestionImages_8c.html#116af89cc354e6105647b876d1841505">00078</a> Evas_Object  *<a class="code" href="gestionImages_8h.html#116af89cc354e6105647b876d1841505">caisseMoveOK</a>( Evas_Object *o,Evas *evas,<span class="keywordtype">int</span> move1,<span class="keywordtype">int</span> move2)
<a name="l00079"></a>00079 {
<a name="l00080"></a>00080     <span class="keywordtype">int</span> iw, ih;
<a name="l00081"></a>00081     o = evas_object_image_add (evas);
<a name="l00082"></a>00082     evas_object_image_file_set (o, <span class="stringliteral">"../imgs/caisse_ok.jpg"</span>, NULL);
<a name="l00083"></a>00083     evas_object_image_size_get(o, &amp;iw, &amp;ih);
<a name="l00084"></a>00084     evas_object_image_size_set(o, iw, ih);
<a name="l00085"></a>00085     evas_object_image_fill_set(o, 0, 0, iw, ih);
<a name="l00086"></a>00086     evas_object_resize (o, iw, ih);
<a name="l00087"></a>00087     evas_object_move (o, move1, move2);
<a name="l00088"></a>00088     <span class="keywordflow">return</span> o;
<a name="l00089"></a>00089 }
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 
<a name="l00092"></a><a class="code" href="gestionImages_8c.html#dec9c1512fab8698714d9dcb2f6156b7">00092</a> Evas_Object  *<a class="code" href="gestionImages_8c.html#dec9c1512fab8698714d9dcb2f6156b7">victory</a>( Evas_Object *o,Evas *evas)
<a name="l00093"></a>00093 {
<a name="l00094"></a>00094     <span class="keywordtype">int</span> iw, ih;
<a name="l00095"></a>00095     o = evas_object_image_add (evas);
<a name="l00096"></a>00096     evas_object_image_file_set (o, <span class="stringliteral">"../imgs/victoire.png"</span>, NULL);
<a name="l00097"></a>00097     evas_object_image_size_get(o, &amp;iw, &amp;ih);
<a name="l00098"></a>00098     evas_object_image_size_set(o, iw, ih);
<a name="l00099"></a>00099     evas_object_image_fill_set(o, 0, 0, iw, ih);
<a name="l00100"></a>00100     evas_object_resize (o, iw, ih);
<a name="l00101"></a>00101     evas_object_move (o, 0, 0);
<a name="l00102"></a>00102     <span class="keywordflow">return</span> o;
<a name="l00103"></a>00103 }
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Sun Apr 5 18:14:18 2009 pour e-MarioSakoban par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
